<template>
  <div class="main">
    <div class="content">
      <p>友情链接：</p>
      <ul>
        <li v-for="(i,index) in linklist" :key="index">
          <a :href="i.dictValue" target="view_frame"> {{ i.dictLabel }}</a>
        </li>
      </ul>
      <div class="solid"></div>
      <div class="bottom">Copyright © 2017-2025 石家庄天亮教育科技有限公司 备案号:冀ICP备17020003号</div>
    </div>
  </div>
</template>

<script>
import {postFriend} from "@/api/index-api";

export default {
  name: "Friend",
  data() {
    return {
      linklist: ''
    }
  },
  created() {
    postFriend().then(res => {
      this.linklist = res.rows
      // console.log(this.linklist)
    })
  }
}
</script>

<style scoped lang="less">
.main {
  background-color: #444546 !important;
  height: 200px;
  color: #999999;
  border-top: 1px solid #444546;

  .content {
    width: 1200px;
    margin: 0 auto;

    p {
      font-size: 22px;
    }

    ul {
      margin: 0;
      padding: 0;
      list-style: none;
      overflow: hidden;

      li {
        font-size: 14px;
        float: left;
        margin-right: 30px;

        a {
          color: #999999;
          text-decoration: none;
        }
        a:hover{
          color: #00cf8c;
        }
      }
    }

    .solid {
      width: 1000px;
      height: 1px;
      background-color: white;
      margin: 50px auto 10px;
    }

    .bottom {
      text-align: center;
    }
  }

}
</style>